package com.jing.yao.config.threadlocal;

import java.util.TimeZone;

/**
 * 用于放置所有ThreadLocal
 * @author Yao
 * @since 2020-07-03
 */
public class ThreadLocalStore {

    /**
     * 存放时区，让当前线程共享
     */
    public final static ThreadLocal<TimeZone> timeZoneThreadLocal = new InheritableThreadLocal<TimeZone>(){
        @Override
        protected TimeZone initialValue() {
            return TimeZone.getTimeZone("GMT+8");
        }
    };
}
